import {Router, Route, IndexRoute} from 'dva/router';
import ComponentWarp from '../../component/ComponentWarp';
import Login from '../login/route/Login';
import Register from '../login/route/Register';
import ForgetPassword from '../login/route/ForgetPassword';
import Home from './route/Home';
import BlogDetail from './route/BlogDetail';

function RouterConfig({history}) {
	return(
		<Router history={history}>
			<Route component={ComponentWarp}>
				<Route path='/' component={Home} />
				<Route path='/blogDetail/:recordId' component={BlogDetail} />
				<Route path='/login' component={Login} />
				<Route path='/register' component={Register} />
				<Route path='/forgetPassword' component={ForgetPassword} />
			</Route>
		</Router>
	);
}

export default RouterConfig;